awk '{if (FILENAME == "alexa.out") a[NR] = $2; if (FILENAME == "finalout") b[NR] = $0;} END {for (x = 0; x < 999; ++x) print a[x]" "b[x+999];}' alexa.out finalout
